import request from '@/utils/request'

// 查询项目财报对比-对比公司列表
export function listDealPcwCompanyContrast(query) {
  return request({
    url: '/deal/pcwMedical/list',
    method: 'get',
    params: query
  })
}

// 查询项目财报对比-对比公司详细
export function getDealPcwCompanyContrast(id) {
  return request({
    url: '/deal/pcwMedical/' + id,
    method: 'get'
  })
}

// 保存项目财报对比-对比公司
export function saveDealPcwCompanyContrast(data) {
  return request({
    url: '/deal/pcwMedical/save',
    method: 'post',
    data: data
  })
}

// 查询选择的对比公司
export function findSelCompanyId(query) {
  return request({
    url: '/deal/pcwMedical/findSelCompanyId',
    method: 'get',
    params: query
  })
}

// 获取当前公司的所有已经存在的财报，当作查询条件
export function getPcwYearTypeData(query) {
  return request({
    url: '/deal/pcwMedical/getPcwYearTypeData',
    method: 'get',
    params: query
  })
}

// 删除项目财报对比-对比公司
export function delDealPcwCompanyContrast(id) {
  return request({
    url: '/deal/pcwMedical/' + id,
    method: 'delete'
  })
}

// 导出项目财报对比-对比公司
export function exportDealPcwCompanyContrast(query) {
  return request({
    url: '/deal/pcwMedical/export',
    method: 'get',
    params: query
  })
}

// 根据公司维度，获取公司之间对比数据
export function findGroupCompanyVS(query) {
  return request({
    url: '/deal/pcwMedical/findGroupCompanyVS',
    method: 'get',
    params: query
  })
}

